﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:Microsoft.Samples.Kinect.WpfViewers;assembly=Microsoft.Samples.Kinect.WpfViewers" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="videoTest.MainWindow"
        Title="MainWindow" Height="1080" Width="1920" Loaded="Window_Loaded" Closing="Window_Closing">
    <Grid Background="Black">
        <Grid.RowDefinitions>
            <RowDefinition Height="134*"/>
            <RowDefinition Height="546*"/>
            <RowDefinition Height="361*"/>
        </Grid.RowDefinitions>
        <WebBrowser x:Name="IPCam" Source="http://192.168.2.201:8080/jsfs.html" Height="480" Width="640" Margin="686,0,900,300" Opacity="0.5" Grid.Row="1" Grid.RowSpan="2"  />
        <Ellipse Fill="Black" Height="45" HorizontalAlignment="Left" Margin="0,36,0,0" x:Name="red" Stroke="Black" VerticalAlignment="Top" Width="52"  />
        <Ellipse Height="45" HorizontalAlignment="Left" Margin="0,119,0,0" x:Name="blue" Stroke="Black" VerticalAlignment="Top" Width="52" Grid.RowSpan="2" />
        <Ellipse Height="45" HorizontalAlignment="Left" Margin="0,71,0,0" x:Name="green" Stroke="Black" VerticalAlignment="Top" Width="52" Grid.Row="1" />
        <Ellipse Height="45" HorizontalAlignment="Left" Margin="0,163,0,0" x:Name="startEllipse" Stroke="Black" VerticalAlignment="Top" Width="52" Grid.Row="1" />
        <TextBlock Height="15" HorizontalAlignment="Left" Margin="12,12,0,0" x:Name="stop" Text="Stop" VerticalAlignment="Top" Width="46" Foreground="#FFFF8015"  />
        <TextBlock Height="15" HorizontalAlignment="Left" Margin="12,87,0,0" x:Name="hand" Text="Hand" VerticalAlignment="Top" Width="46" Foreground="#FFFF8015"  />
        <TextBlock Height="15" HorizontalAlignment="Left" Margin="12,34,0,0" x:Name="car" Text="Car" VerticalAlignment="Top" Width="46" Foreground="#FFFF8015" Grid.Row="1" />
        
        <TextBlock Height="15" HorizontalAlignment="Left" Margin="12,126,0,0" x:Name="Start" Text="Start" VerticalAlignment="Top" Width="46" Foreground="#FFFF8015" Grid.Row="1" />
        <!--<Image Height="254" HorizontalAlignment="Left" Margin="518,756,0,0" x:Name="histo" Stretch="Fill" VerticalAlignment="Top" Width="253" />-->
        <!--<Ellipse Height="40" HorizontalAlignment="Left" Margin="62,237,0,0" x:Name="calibratedGo" Stroke="Black" VerticalAlignment="Top" Width="42" />-->
        <TextBlock x:Name="alert" Margin="1541,0,0,0" FontSize="25" FontWeight="Bold" Height="134" VerticalAlignment="Bottom" Foreground="Red" />
        <!--<TextBlock Height="38" HorizontalAlignment="Left" Margin="887,158,0,0" x:Name="leftText" Text="Left Hand Data" VerticalAlignment="Top" Width="102" Foreground="Red" Grid.Row="1" TextAlignment="Center" />
        <TextBlock Height="38" HorizontalAlignment="Left" Margin="1028,0,0,351" x:Name="rightText" Text="Right Hand Data" VerticalAlignment="Bottom" Width="100" FontSize="12" Foreground="Red" Grid.Row="1" TextAlignment="Center" />-->
        <!--<TextBlock Height="54" HorizontalAlignment="Left" Margin="57,256,0,0" Name="lftData" VerticalAlignment="Top" Width="88" />-->
        <!--<TextBlock Height="77" HorizontalAlignment="Left" Margin="887,207,0,0" x:Name="convDataX"  VerticalAlignment="Top" Width="102" FontSize="16" Foreground="White" Grid.Row="1"  />
        <TextBlock Height="77" HorizontalAlignment="Left" Margin="1028,207,0,0" x:Name="convDataY" VerticalAlignment="Top" Width="100" FontSize="16" Foreground="White" Grid.Row="1"  />-->
        <Rectangle x:Name="myGrad" HorizontalAlignment="Left" Height="480" Margin="1421,311,0,0" Stroke="Black" VerticalAlignment="Top" Width="87" RenderTransformOrigin="0.5,0.5" Grid.Row="1" Grid.RowSpan="2">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform AngleX="20"/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>

        </Rectangle>
        <Rectangle x:Name="myGrad2" HorizontalAlignment="Left" Height="480" Margin="510,311,0,0" Stroke="Black" VerticalAlignment="Top" Width="86" RenderTransformOrigin="0.5,0.5" Grid.Row="1" Grid.RowSpan="2">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform AngleX="-20"/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>

        </Rectangle>
        <Canvas Height="720" Width="1280" x:Name="MainCanvas"  Margin="341,142,277,45" Grid.Row="1" Grid.RowSpan="2" >
            <my:KinectSensorChooser x:Name="kinectSensorChooser1" Width="225" Canvas.Left="10" Canvas.Top="235" Height="235" />
            <Ellipse Canvas.Left="144" Canvas.Top="0" Fill="Purple" Height="50" x:Name="sholderEllipse" Stroke="Black" Width="50" />
            <!--<Ellipse Canvas.Left="50" Canvas.Top="0" Height="50" x:Name="rightEllipse" Stroke="blue" Width="50" />-->
        
        <Grid Height="53" Name="lftEllipsGrid" Width="61" Grid.Row="1">
            <Ellipse Fill="#FF05A4FF" Height="50" x:Name="leftEllipse" Stroke="Black" Width="50" Margin="0,0,11,3" />
            <TextBlock Height="21" HorizontalAlignment="Left" Margin="3,16,0,0" Name="lftVal" VerticalAlignment="Top" Width="44" TextAlignment="Center" FontSize="18" />
        </Grid>
        <Grid Height="52" Name="rtEllipseGrid" Width="60"  Grid.Row="1">
            <Ellipse Fill="#FF05A4FF" Height="50" x:Name="rightEllipse1" Stroke="Black" Width="50" Margin="4,2,6,0" />
            <TextBlock Height="21" HorizontalAlignment="Left" Margin="8,18,0,0" Name="rtVal" VerticalAlignment="Top" Width="42" TextAlignment="Center" FontSize="18" />
        </Grid>
        </Canvas>
        
        <!--<Canvas Height="480" x:Name="Canvas_Right"  Margin="958,311,306,116" Grid.Row="1" Grid.RowSpan="2" >
            <Grid Canvas.Left="507" Canvas.Top="35" Height="52" Name="rtEllipseGrid" Width="60">
                <Ellipse Fill="#FF05A4FF" Height="50" x:Name="rightEllipse1" Stroke="Black" Width="50" Margin="4,2,6,0" />
                <TextBlock Height="21" HorizontalAlignment="Left" Margin="8,18,0,0" Name="rtVal"  VerticalAlignment="Top" Width="42" TextAlignment="Center" />
            </Grid>-->
        <!--</Canvas>-->

    </Grid>
</Window>
